<template>
  <el-button @click="set">设置</el-button>
  <el-button @click="get">读取</el-button>
  <el-button @click="remove">删除</el-button>
</template>
<script setup>
import { useCookies } from "@vueuse/integrations/useCookies";
const cookies = useCookies();
console.log(cookies);
function set() {
  cookies.set("admin-token", "12345");
}
function get() {
  const c = cookies.get("admin-token");
  console.log(c);
}
function remove() {
  cookies.remove("admin-token");
}
</script>
